package com.cwh.taskcenter.user.converter;

import com.cwh.taskcenter.domain.user.model.User;
import com.cwh.taskcenter.user.model.UserDO;

/**
 * @author cwh
 */
public class UserConverter {



    public static User toDomain(UserDO userDO) {
        if (userDO == null) {
            return null;
        }

        User user = new User();
        user.setId(userDO.getId());
        user.setUsername(userDO.getUsername());
        user.setPhone(userDO.getPhone());
        user.setEmail(userDO.getEmail());
        user.setRegisterTime(userDO.getRegisterTime());
        user.setUserStatus(userDO.getUserStatus());
        return user;
    }




}
